/**
 * Created by Cake on 2017/10/9.
 */

var drawAutoSize = function () {
    var banner = $(".banner-draw"),
        scale = accDiv(515, 750),
        width = $(window).width(),
        height = accMul(width, scale);

    banner.height(height);
};

var dialogOption = function () {
    var openButton = $(".result-inf"),
        dialog = $(".personal");

    var openDialog = (function () {
        openButton.on('click', function () {
            var openButtonText = openButton.text();

            if (openButtonText === "请填写个人信息") {
                dialog.fadeIn(300);
            }
        });
    }());
};

$(function () {
    drawAutoSize();
    $(window).resize(function () {
        drawAutoSize();
    });

    dialogOption();
});